#include <cstdio>
#include <algorithm>

int cnt[100005];

int main(){
    freopen("duel.in" , "r", stdin );
    freopen("duel.out", "w", stdout);

    int n;
    scanf("%d", &n);
    
    for (int i=1; i<=n; ++i){
        int x;
        scanf("%d", &x);
        ++cnt[x];
    }

    int sum = 0;
    
    for (int i=1; i<=100000; ++i){
        sum -= std::min(sum, cnt[i]);
        sum += cnt[i];
    }

    printf("%d\n", sum);

    return 0;
}

